package com.lds.sign_sdk.config;

import com.lds.sign_sdk.crypto.CryptoProperties;
import com.lds.sign_sdk.interceptor.CryptoInterceptor;
import com.lds.sign_sdk.interceptor.DesensitizeInterceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.lang.invoke.MethodHandles;

/**
 * @Date 2022/7/29
 * @Time 19:19
 * @Author liudongs
 * @E-mail liudongs@aliyun.com
 * @Version 1.0.0
 * @Description
 **/
@Configuration
@EnableConfigurationProperties({CryptoProperties.class})
public class PrivacyAutoConfiguration {
    public PrivacyAutoConfiguration() {
    }

    @Bean
    public CryptoInterceptor cryptoInterceptor() {
        return new CryptoInterceptor();
    }

    @Bean
    public DesensitizeInterceptor desensitizeInterceptor() {
        return new DesensitizeInterceptor();
    }
}